package com.sc.oa.action;

import org.hibernate.connection.UserSuppliedConnectionProvider;

import com.sc.oa.base.BaseAction;
import com.sc.oa.entity.UserAccout;

public class UserAction extends BaseAction<UserAccout>{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1852931745420838441L;
	
	public String login(){
		UserAccout accout = useraccoutservice.login(model);
		if(accout==null){
			msg = "登陆名或密码错误！";
			return "login";
		}
		return "index";
	}

}
